// pages/setUp/index.js
const {
  get
} = getApp();
Page({
  data: {
    data: {}
  },
  // 初始化加载
  onLoad: function () {
    get('/mine/config').then(res => {
      if (res.result == 1) {
        this.setData({
          data: res.data
        })
      }
    })
  },
  // 跳转我的地址
  goToPage() {
    wx.navigateTo({
      url: '../addressList/index',
    })
  },
  onShow: function () {
    // 控制分享按钮
    wx.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline'],
      success(res) {
        console.log('showShareMenu', res);
      }
    });
  }
})